<h1><%= t('.title') %></h1>

<table class="table table-striped">
  <tr>
    <th><%= t('.name') %></th>
    <th><%= t('.address') %></th>
    <th><%= t('.email') %></th>
    <th><%= t('.pay_type') %></th>
    <th></th>
  </tr>

<% @orders.each do |order| %>
  <tr>
    <td><%= order.name %></td>
    <td><%= order.address %></td>
    <td><%= order.email %></td>
    <td><%= order.pay_type %></td>
    <td>
    	<div class="btn-group">
    		<%= link_to t('global_button_show'), order, :class => 'btn' %>
    		<%= link_to t('global_button_edit'), edit_order_path(order), :class => 'btn' %>
    		<%= link_to t('global_button_delete'), order, confirm: t('global_alert_sure'), method: :delete, :class => 'btn' %>
    	</div>
    </td>
  </tr>
<% end %>
</table>
<br />
<p><%= will_paginate @orders %></p>
